<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <link rel="stylesheet" type="text/css" href="<?php echo bu(); ?>/css/core.css" />
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>
    <body style="padding:10px;">
        <div class="sidebar">
            <div class="nav">
                <?php
                $this->widget('zii.widgets.CMenu', array(
                    'items' => array(
                        array(
                            'label' => 'Dashboard',
                            'url' => array('site/index'),
                            'linkOptions' => array('class' => 'on', 'target' => 'main'),
                            'items' => array(
                                array(
                                    'label' => 'base setting',
                                    'url' => array('site/setting'),
                                    'linkOptions' => array('target' => 'main')
                                ),
                            )
                        ),
                        array(
                            'label' => 'Article',
                            'url' => array('article/index'),
                            'linkOptions' => array('class' => 'on', 'target' => 'main'),
                            'items' => array(
                                array(
                                    'label' => 'article list',
                                    'url' => array('article/index'),
                                    'linkOptions' => array('target' => 'main')
                                ),
                                array(
                                    'label' => 'create article',
                                    'url' => array('article/create'),
                                    'linkOptions' => array('target' => 'main')
                                )
                            )
                        ),
                        array(
                            'label' => 'comment',
                            'url' => array('comment/index'),
                            'linkOptions' => array('target' => 'main'),
                        ),
                        array(
                            'label' => 'Form',
                            'url' => array('comment/index'),
                            'linkOptions' => array('target' => 'main'),
                        ),
                        array(
                            'label' => 'Tables',
                            'url' => array('comment/index'),
                            'linkOptions' => array('target' => 'main'),
                        ),
                        array(
                            'label' => 'Tables',
                            'url' => array('comment/index'),
                            'linkOptions' => array('target' => 'main'),
                        ),
                        array(
                            'label' => 'Tables',
                            'url' => array('comment/index'),
                            'linkOptions' => array('target' => 'main'),
                        )
                    ),
                    'htmlOptions' => array(
                        'class' => 'accordion'
                    ),
                    'submenuHtmlOptions' => array(
                        'class' => 'subNav',
                        'style' => 'display:none;'
                    )
                ));
                ?>
                <script>
                    $(function(){
                        var o = $('.accordion li a.on');
                        $(o).toggle(function(){
                            $(this).siblings('.subNav').slideDown();
                            $(this).parent().siblings().children('.subNav').slideUp();
                        },
                        function() {
                            $(this).siblings('.subNav').slideUp();
                        }
                    )})
                </script>
            </div>
        </div>
    </body>
</html>